package db8;

public class Circle extends Shape{
    int radius;
    public Circle(){

    }
    public Circle(String color,int radius){
        super(color);
        this.radius=radius;
    }
    public int getArea(){
        return 3*radius*radius;
    }
    public int getPer(){
        return 2*3*radius;
    }
    public void showAll(){
        System.out.println("半径："+radius+" 面积；"+getArea()+" 周长："+getPer()+" 颜色："+getColor());
    }
}
